<template>
    <div class="container">
        <h1 class="error-code">404</h1>
        <h2 class="error-title">哎呀！页面未找到</h2>


        <div class="illustration">
            <svg viewBox="0 0 300 200" xmlns="http://www.w3.org/2000/svg">
                <!-- 背景 -->
                <rect width="300" height="200" fill="#f8f9fa" />

                <!-- 云朵 -->
                <ellipse cx="80" cy="50" rx="30" ry="20" fill="#e9ecef" />
                <ellipse cx="110" cy="50" rx="25" ry="15" fill="#e9ecef" />
                <ellipse cx="220" cy="70" rx="35" ry="22" fill="#e9ecef" />
                <ellipse cx="250" cy="70" rx="28" ry="18" fill="#e9ecef" />

                <!-- 地面 -->
                <rect x="0" y="150" width="300" height="50" fill="#dee2e6" />

                <!-- 404文字 -->
                <text x="150" y="100" text-anchor="middle" font-family="Arial, sans-serif" font-size="48"
                    font-weight="bold" fill="#4a6cf7">404</text>

                <!-- 小人 -->
                <circle cx="150" cy="130" r="8" fill="#495057" />
                <path d="M150 138 L150 155" stroke="#495057" stroke-width="3" />
                <path d="M150 145 L140 150" stroke="#495057" stroke-width="3" />
                <path d="M150 145 L160 150" stroke="#495057" stroke-width="3" />
                <path d="M150 155 L140 170" stroke="#495057" stroke-width="3" />
                <path d="M150 155 L160 170" stroke="#495057" stroke-width="3" />
            </svg>
        </div>
    </div>
</template>

<script setup lang="ts">

</script>
<style lang="scss" scoped>


.error-code {
    font-size: 120px;
    font-weight: 800;
    color: #4a6cf7;
    line-height: 1;
    margin-bottom: 10px;
}

.error-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.error-description {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 500px;
}

.illustration {
    width: 300px;
    height: 200px;
    margin: 20px 0 30px;
    position: relative;
}

.search-box {
    width: 100%;
    max-width: 500px;
    margin: 20px 0;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #eaeaea;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: #4a6cf7;
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: #4a6cf7;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: #3a5bd9;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: #4a6cf7;
    color: white;
    border: 2px solid #4a6cf7;
}

.btn-primary:hover {
    background: #3a5bd9;
    border-color: #3a5bd9;
}

.btn-secondary {
    background: transparent;
    color: #4a6cf7;
    border: 2px solid #4a6cf7;
}

.btn-secondary:hover {
    background: rgba(74, 108, 247, 0.1);
}

.additional-links {
    margin-top: 30px;
    font-size: 14px;
    color: #888;
}

.additional-links a {
    color: #4a6cf7;
    text-decoration: none;
    margin: 0 10px;
}

.additional-links a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .container {
        padding: 30px 20px;
    }

    .error-code {
        font-size: 80px;
    }

    .error-title {
        font-size: 24px;
    }

    .illustration {
        width: 200px;
        height: 150px;
    }
}
</style>